package com.qisimanxiang.dalaran.zuul.config;

import lombok.Data;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;

import javax.annotation.PostConstruct;

/**
 * @author wangmeng
 */
@Data
@Slf4j
@ToString
@ConfigurationProperties(prefix = "default")
public class ConsulConfig {
    private String name;

    @PostConstruct
    public void init() {
        log.info("default config ：{}", this);
    }
}
